package com.aven.blog.bean;

import java.io.Serializable;
import java.sql.Date;

public class Blogs implements Serializable {
    private static final long serialVersionUID =1L;
    private String b_id;        //主键id
    private String title;    //博文题目
    private String content;  //内容
    private Date date;       //日期
    private String pic;      //头像

    private User user;       //所属用户
    public Blogs() {

    }


    @Override
    public String toString() {
        return "Blogs{" +
                "b_id='" + b_id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", date=" + date +
                ", pic='" + pic + '\'' +
                ", user=" + user +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getB_id() {
        return b_id;
    }

    public void setB_id(String b_id) {
        this.b_id = b_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
}
